package com.ahsjdy.st.stdao.mapper;

import com.ahsjdy.st.stdao.entity.Sku;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SkuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Sku record);

    int insertSelective(Sku record);

    Sku selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Sku record);

    int updateByPrimaryKey(Sku record);

    List<Sku> listSku(@Param("merchantId") Integer merchantId,
                      @Param("commodityId") Integer commodityId,
                      @Param("skuType")Integer skuType);

    int delSku(@Param("merchantId") Integer merchantId,
               @Param("commodityId") Integer commodityId,
               @Param("skuType")Integer skuType);

}